# 海口热门景点及分类数据
HAIKOU_SPOTS = {
    "历史文化": [
        {"name": "骑楼老街", "location": "110.3434,20.0456", "duration": 2},
        {"name": "五公祠", "location": "110.3543,20.0278", "duration": 1.5},
        {"name": "海南省博物馆", "location": "110.3312,20.0271", "duration": 2}
    ],
    "自然风光": [
        {"name": "万绿园", "location": "110.3245,20.0489", "duration": 1.5},
        {"name": "假日海滩", "location": "110.2845,20.0589", "duration": 3},
        {"name": "火山口地质公园", "location": "110.2245,19.9989", "duration": 3}
    ],
    "美食购物": [
        {"name": "泰龙城小吃街", "location": "110.3434,20.0456", "duration": 2},
        {"name": "日月广场", "location": "110.3345,20.0189", "duration": 2.5},
        {"name": "南北水果市场", "location": "110.3645,20.0389", "duration": 1}
    ]
}

# 新增默认兴趣分类
DEFAULT_INTERESTS = ["历史文化", "美食购物"]

# 新增MySQL数据库配置
MYSQL_CONFIG = {
    'user': 'jd',
    'password': 'nETa4BGHjzShyAPD',
    'host': '172.16.250.188',
    'port': 3306,
    'database': 'jd'
}

# 新增百度地图AK配置（替换示例值为真实AK）
import os  # 新增：导入os模块
BAIDU_MAP_AK = os.getenv('BAIDU_MAP_API_KEY', '47jXQbiwPNWVY5GgVPUJYpOiHG5YhBcr')  # 从环境变量获取

# 已存在有效的Redis配置无需修改
# 已移除BAIDU_MAP_AK配置
REDIS_CONFIG = {
    'CACHE_TYPE': 'redis',
    'CACHE_REDIS_URL': 'redis://172.16.250.188:6379/0',
    'CACHE_DEFAULT_TIMEOUT': 300
}